﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ProjectCore.Domain.Model.Entity
{
    /// <summary>
    /// 商品分类
    /// </summary>
    public class ProductType
    {
        [Key]
        public int ProTypeID { get; set; }     //商品分类ID

        public int ParentID { get; set; }      //上级ID

        [StringLength(50)]
        public string ProTypeName { get; set; } //分类名称

        public DateTime CreateTime { get; set; } //添加时间

        public int Photo { get; set; }           //图片外键

        public int Sort { get; set; }            //显示顺序

        public string Spare { get; set; }        //备用

        [NotMapped]
        public bool IsDeleted { get; set; }
    }
}
